Previous Book Contents Book Index Next

Inside Macintosh: Programming With JManager /
Chapter 1 - Using JManager / Creating a Java Runtime Environment


Properties and Client-Specific Session Data

Since the session is a JMSessionRef object, you can assign or change properties associated with it. You can do this using the functions JMGetSessionProperty (page 60) and JMPutSessionProperty (page 61). These functions correspond to the Java methods java.lang.System.getProperty and java.lang.System.setProperty respectively. If the property name you specify does not exist, then JManager creates a new property with that name.

In addition, you can also read or set optional client data for a given session using the functions JMGetSessionData (page 59) and JMSetSessionData (page 60). For example, if you have multiple sessions running at the same time, you might want to store specific data with each one.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
23 APR 1997